package com.pace.ribbon.day02.javaconfig;import com.pace.ribbon.day02.javaconfig.bean.Hand;import com.pace.ribbon.day02.javaconfig.bean.Man;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;/** * @Auther: Administrator * @Date: 2019/3/25 0025 23:49 * @Description: */@Configurationpublic class JavaConfig {    @Bean    public Hand hand(){        return new Hand();    }    @Bean    public Man man(){        return new Man(hand());    }}